package com.java0107;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Writer02 {
    public static void main(String[] args) throws IOException {
        FileWriter fileWriter = new FileWriter("d:/test.txt",true);

        BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);

        for(int i =0;i<4;i++){
            bufferedWriter.write("你是谁？");
        }
        bufferedWriter.close();
        fileWriter.close();

    }
}
